package com.aaa.set.controller.api;

import com.aaa.entity.CustomerIssues;
import com.aaa.security.annotation.MyLog;
import com.aaa.set.service.CustomerIssuesService;
import com.aaa.vo.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 荆豪峰
 * @version 1.0
 * #Date: 2023/3/6 09:26
 */
@Api(value = "set/customerissues", tags = {"#Date: 2023/3/6 09:26"})
@RestController
@RequestMapping("set/customerissues")
public class ApiCustomerIssuesController {
    @Autowired
    private CustomerIssuesService customerService;
    /**
     * #Description 帮助中心信息查询
     * @param customerIssue
     * @return com.aaa.vo.Result
     * @author 荆豪峰
     * #Date 2023/3/6
     */
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "body", dataType = "CustomerIssues", name = "customerIssue", value = "", required = true)
    })
    @ApiOperation(value = "#Description 帮助中心信息查询 #Date 2023/3/6", notes = "#Description 帮助中心信息查询 #Date 2023/3/6", httpMethod = "POST")
    @MyLog(title = "帮助中心信息查询")
    @PostMapping("list")
    public Result customerIs(@RequestBody CustomerIssues customerIssue){
        return customerService.selectAll(customerIssue);
    }
}
